package com.dyh.controller.admin;

import com.dyh.service.blog.BlogService;
import com.dyh.service.blog.BlogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/admin")
public class BlogController {

    @Autowired
    private BlogServiceImpl blogService;

    //新增博客
    @RequestMapping("/toAddBlog")
    String toAddBlog(){
        return "admin/insert";
    }


}
